<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	template="/layout/dialogLayout.xhtml">

 	<ui:param name="param_panelTitle" value="会员级别更新"/>
 	<ui:param name="param_panelWidth" value="450px"/>
	
	<ui:define name="content">

	      <ui:decorate template="/components/formTemplate.xhtml">
	            <ui:param name="id" value="memberIntegralForm"/>
	            <ui:param name="param_headerTitle" value="会员级别更新" />
	            <ui:define name="fields">
					<rg:outputText id="memberLevel" label="会员级别" value="#{memberIntegralPromotionAction.memberIntegralPromotion.memberLevel}"
						 messagePrefix="luyuan_crm_member_memberLevel_" converter="#{messageConverter}"  />
					<rg:inputText id="totalIntegral" required="true" label="晋级条件" value="#{memberIntegralPromotionAction.memberIntegralPromotion.totalIntegral}" />
					<rg:inputText id="discount" label="享受折扣" required="true" value="#{memberIntegralPromotionAction.memberIntegralPromotion.discount}" />
					<rg:inputText id="birthIntegral" label="生日积分" required="true" value="#{memberIntegralPromotionAction.memberIntegralPromotion.birthIntegral}" />
					<rg:selectOne id="dailyCare" label="日常关怀" value="#{memberIntegralPromotionAction.memberIntegralPromotion.dailyCare}" required="true"
						itemsProvider="#{booleanProvider}" converter="#{booleanConverter}" style="width:100px;"/>
					<rg:selectOne id="healthKnowledgeSharing" label="健康知识分享" value="#{memberIntegralPromotionAction.memberIntegralPromotion.healthKnowledgeSharing}" required="true"
						itemsProvider="#{booleanProvider}" converter="#{booleanConverter}" style="width:100px;"/>
					<rg:selectOne id="oneByOneCare" label="一对一指导" value="#{memberIntegralPromotionAction.memberIntegralPromotion.oneByOneCare}" required="true"
						itemsProvider="#{booleanProvider}" converter="#{booleanConverter}" style="width:100px;"/>
			</ui:define>
			<ui:define name="panelButton">
					<a:commandButton styleClass="button" value="#{messages.btn_complete}" 
						onclick="UI.instance.showMask()" oncomplete="UI.instance.reRender('reRendermemberIntegralPromotionTable');"
						actionListener="#{memberIntegralPromotionAction.update()}" reRender="globalMessage" />
						
					<a:commandButton styleClass="button" value="取消" onclick="UI.instance.closeDialog()"/>
            </ui:define>
			</ui:decorate>
	</ui:define>
</ui:composition>
